package com.mayikt;

/**
 * @Author: maplefire
 * @Description: future模式测试示例
 * @Date: 2022/09/14 16:00
 */

public class FutureModeTest {
    public static void main(String[] args) {

        FutureClient futureClient = new FutureClient();
        Data request = futureClient.request("name");
        System.out.println("main...数据发送成功.");
        System.out.println("主线程执行其他任务");
        String result = request.getRequest();
        System.out.println("主线程获取结果，result：" + result);

    }
}
